package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import com.huawei.appgallery.foundation.card.base.normal.bean.NormalCardBean;
import java.util.List;
import o.azb;
import o.chc;
import o.ContentManager;
import o.CollectCheck;
import o.ewm.d;

public class BigHorizonHomeFixedCard extends NormalHorizonCard {
    public BigHorizonHomeFixedCard(Context context) {
        super(context);
    }

    protected int ˏॱ() {
        return 0;
    }

    public void ˎ() {
        this.ᐝ.ˋ(ॱˋ());
        this.ᐝ.ॱ(ˋॱ());
    }

    private int ˋॱ() {
        return ContentManager.getInstant().getContext().getResources().getDimensionPixelSize(d.ˎͺ);
    }

    private int ॱˋ() {
        Context ˋ = ContentManager.getInstant().getContext();
        return chc.ˏ() - ((ˋ.getResources().getDimensionPixelSize(d.ͺˏ) - ˋ.getResources().getDimensionPixelSize(d.ˋʼ)) / 2);
    }

    protected boolean ˏ(Context context, List<NormalCardBean> list) {
        if (CollectCheck.isEmpty(list)) {
            return false;
        }
        int dimensionPixelSize = context.getResources().getDimensionPixelSize(d.ͺˏ);
        if ((dimensionPixelSize + ˋॱ()) * list.size() > azb.ॱ(context)) {
            return true;
        }
        return false;
    }
}
